﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;


namespace FSC.HaNamAPApplication
{
    public class Controler
    {
        public static string UrlWithoutParam(string iUrl)
        {
            if (iUrl != null)
            {
                if (iUrl.IndexOf('?') != -1)
                    return iUrl.Substring(0, iUrl.IndexOf('?'));
                else if (iUrl.IndexOf('#') != -1)
                    return iUrl.Substring(0, iUrl.IndexOf('#'));
                else
                    return iUrl;
            }
            else
                return "";
        }

        public static string HaNamAPConnectionString = "";
    }

    public enum eUserControl
    {
        Home = 0,
        AP,
        APResult,
        APReport,
        News,
        Doc,
        Sitemap
    }
}
